import { request } from './index';

export default {
  getAboutContent: function(params,callback) {
    let reqParams = {//传到后台的数据
      aboutName: params // 文章的ID
    }
    request.post('getAboutContent', reqParams, callback);
  },
  getCharge: function(callback) {
    request.get('getCharge', callback);
  },
  getRateList: function(callback) {
    request.get('getRateList', callback);
  },
  setRate: function(params,callback) {
    let reqParams = {//传到后台的数据
      id: params.id,
      rateRank: params.rateRank
    }
    request.post('setRate', reqParams, callback);
  },
}
